(handle_one_xevent): Don't pass buttons higher than 3
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 13 May 2008 08:13:13 +0000 (08:13 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 13 May 2008 08:13:13 +0000 (08:13 +0000)
to Gtk+ menus.

src/xterm.c

index 3b625b0d662ca628ab37ec8cb69d182965d11d56..89cf06c05e036e49d8e0e4763ca74f1f2079c52b 100644 (file)
@@ -6848,6 +6848,8 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
         if (
 #ifdef USE_GTK
             ! popup_activated ()
+            /* Gtk+ menus only react to the first three buttons. */
+            && event.xbutton.button < 3
             &&
 #endif
             f && event.type == ButtonPress